package com.du.cloud.service.oauth.handler;

import com.du.cloud.security.handler.AbstractAuthenticationSuccessEventHandler;
import lombok.extern.slf4j.Slf4j;
import org.springframework.security.core.Authentication;
import org.springframework.stereotype.Component;

/**
 * Desc:
 * Author: dushuang
 * Date: 2020/5/27
 **/
@Component
@Slf4j
public class CustomAuthenticationSuccessEventHandler extends AbstractAuthenticationSuccessEventHandler {

    @Override
    public void handle(Authentication authentication) {
        log.info("用户：{} 登录成功", authentication.getPrincipal());
    }
}
